package com.payment.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 购物车表 sys_shopping_cart
 * 
 * @author fuzhili
 * @date 2019-01-22
 */
public class ShoppingCart
{
	
	/** 购物车id */
	private String id;
	/** 商户id */
	private String merchantId;
	/** 购买数量 */
	private Integer buyNumber;
	/** 商品id */
	private String productId;
	//商品类型
	private String typeId;
	/** 商品名称 */
	private String productName;
	/** 商品图片 */
	private String productImgurl;
	/** 商品价格 */
	private BigDecimal productPrice;
	//商品总价
	private BigDecimal productTotal;
	/** 购物车状态：10A,未选中；10B,选中 */
	private String checkStatus;

	//创建时间
	private Date createTime;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setMerchantId(String merchantId) 
	{
		this.merchantId = merchantId;
	}

	public String getMerchantId() 
	{
		return merchantId;
	}
	public void setBuyNumber(Integer buyNumber) 
	{
		this.buyNumber = buyNumber;
	}

	public Integer getBuyNumber() 
	{
		return buyNumber;
	}
	public void setProductId(String productId) 
	{
		this.productId = productId;
	}

	public String getProductId() 
	{
		return productId;
	}
	public void setProductName(String productName) 
	{
		this.productName = productName;
	}

	public String getProductName() 
	{
		return productName;
	}
	public void setProductImgurl(String productImgurl) 
	{
		this.productImgurl = productImgurl;
	}

	public String getProductImgurl() 
	{
		return productImgurl;
	}
	public void setProductPrice(BigDecimal productPrice) 
	{
		this.productPrice = productPrice;
	}

	public BigDecimal getProductPrice() 
	{
		return productPrice;
	}
	public void setCheckStatus(String checkStatus) 
	{
		this.checkStatus = checkStatus;
	}

	public String getCheckStatus() 
	{
		return checkStatus;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("merchantId", getMerchantId())
            .append("buyNumber", getBuyNumber())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productImgurl", getProductImgurl())
            .append("productPrice", getProductPrice())
            .append("checkStatus", getCheckStatus())
            .toString();
    }





	public BigDecimal getProductTotal() {
		return productTotal;
	}

	public void setProductTotal(BigDecimal productTotal) {
		this.productTotal = productTotal;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
}
